#pragma once

#ifdef __QT5_TARGET

#include <QtWidgets/QStyledItemDelegate>
#include <QtWidgets/QStyleOption>

#else

#include <QModelIndex>
#include <QPainter>

#endif

class SeparatorDelegate :
	public QStyledItemDelegate
{
public:
	void paint(QPainter *painter, const QStyleOptionViewItem& option, const QModelIndex& index)const;
	SeparatorDelegate(QObject* parent=0);
	~SeparatorDelegate(void);
};
